package com.instalinks.android.apps.smspostservice.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.instalinks.android.apps.smspostservice.helper.AppConfig;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {

		AppConfig appCfg = new AppConfig(context);

		try {
			if (appCfg.isAutoStartOnBootFlag())
				appCfg.setSmsServiceStatus(true);
			else
				appCfg.setSmsServiceStatus(false);
		} catch (Exception e) {
			appCfg.alert("Error resetting service status flag");
		}

	}

}
